package com.appbee.user.shared.service;

import java.util.List;

import com.appbee.core.server.requestfactory.GuiceServiceLocator;
import com.appbee.user.server.service.MemberService;
import com.appbee.user.shared.proxy.MemberProxy;
import com.appbee.user.shared.proxy.WebUserProxy;
import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;

@Service(value=MemberService.class,locator=GuiceServiceLocator.class)
public interface MemberServiceRequest extends RequestContext
{
	public Request<List<MemberProxy>> findByRange(int start,int size);
	
	public Request<Integer> totalSize();
	
	public Request<MemberProxy> save(MemberProxy news);

	public Request<List<MemberProxy>> removeAndFindByRange(MemberProxy news,int start,int size);

	public Request<WebUserProxy> getCurrentUser(String destinationURL);

}
